//
//  YJDemoViewController.swift
//  微博
//
//  Created by YJW on 16/8/5.
//  Copyright © 2016年 yijiang. All rights reserved.
//

//...

import UIKit

class YJDemoViewController: YJBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第 \((navigationController?.childViewControllers.count) ?? 0) 个界面"
    }
    
    @objc private func pushTo(){
        let v = YJDemoViewController()
        
        navigationController?.pushViewController(v, animated: true)
    }

}

extension YJDemoViewController{
    
    override func setUpTableView() {

        super.setUpTableView()
        
        navigItem.rightBarButtonItem = UIBarButtonItem(name: "跳转", target: self, action: #selector(pushTo))
    }
}

